<!-- <template>
	<h1>welcome</h1>
</template>
<script>
	export default {
		meta: {
			title: "glsy",
			icon: "iconfont icon-shouye1",
		},
		mounted() {
		
		},
	};
</script> -->
<template>

  <el-table
    :data="tableData"
    height="100%"
    border
    style="width: 100%">
    <el-table-column align="center"
      prop="username"
      label="登录账户"
      width="180">
    </el-table-column>

    <el-table-column align="center"
      prop="lastLogin.ip"
      label="上次登陆ip">
    </el-table-column>
	<el-table-column align="center"
      prop="lastLogin.loginTime"
      sortable
      label="上次登陆时间">
    </el-table-column>
	<el-table-column align="center"
      prop="nowLogin.ip"
      label="本次登录的ip">
    </el-table-column>
	<el-table-column align="center"
      prop="nowLogin.loginTime"
      label="本次登录的时间">
    </el-table-column>
  </el-table>
</template>

<script>
import * as api from "@/api/users"
  export default {
	meta: {
			title: "glsy",
			icon: "iconfont icon-shouye1",
		},
    data() {
      return {
        tableData: []
      }
    },
    created(){
      api.getLoginLoginApi()
      .then(res=>{
        console.log(res.data.data);
      this.tableData = res.data.data
      })
    }
  }
</script>
<!-- <style scoped lang="less">
el-table-column{
	text-align: center;
}
</style> -->

